@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>任务单管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-lg-6 col-sm-3">
                                <#TimeCon id="beginTime" name="开始日期" isTime="true"/>
                            </div>
                            <div class="col-lg-6 col-sm-3">
                                <#TimeCon id="endTime" name="结束日期" isTime="true"/>
                            </div>
                            <div class="col-lg-6 col-sm-3">
                                <#NameCon id="gcmc" name="工程名称" />
                            </div>
                            <div class="col-lg-6 col-sm-3">
                                <#NameCon id="rwdh" name="任务单号" />
                            </div>
                            <div class="col-lg-6 col-sm-3">
                                <#SelectCon id="scbt" name="生产拌台" >
                                    <option value="1">1#线</option>
                                    <option value="2" selected>2#线</option>
                                    <option value="3">3#线</option>
                                    <option value="5">5#线</option>
                                    <option value="6">6#线</option>
                                </#SelectCon>
                            </div>
                            <div class="col-lg-6 col-sm-3">
                                <#SelectCon id="zt" name="生产状态" >
                                    <option value="">全部</option>
                                    <option value="正在生产" selected>正在生产</option>
                                    <option value="暂停生产">暂停生产</option>
                                    <option value="生产完成">生产完成</option>
                                    <option value="新任务单">新任务单</option>
                                </#SelectCon>
                            </div>
                            <div class="col-lg-6 col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Trwd.search()"/>&nbsp;&nbsp;
                                @if(shiro.hasPermission("/trwd/update")) {
                                <#button name="详情" icon="fa-plus" clickFun="Trwd.openTrwdDetail()"/>
                                @}
                                @if(shiro.hasPermission("/trwd/sgpb")) {
                                <#button name="配比" icon="fa-check" clickFun="Trwd.openTrwdSgpb()" space="true" class="J_menuItem" id="sgpb"/>
                                @}
                            </div>
                            <div class="col-lg-6 col-sm-3">

                            </div>
                        </div>
                        <div class="hidden-xs" id="TrwdTableToolbar" role="group">
                            <div class="row">
                                @if(shiro.hasPermission("/trwd/batch_modify_cl")) {
                                <div style="width: 395px; display: inline-block; height: 23px; margin-left: 15px;">
                                    <div class="input-group">
                                    <span class="input-group-addon">掺&emsp;&emsp;量</span>
                                    <input type="number" id="cl" class="form-control" max="5" step="0.05" style="width: 80px; color: red;" value="0.05"/>
                                    <span class="input-group-addon btn btn-primary" onclick="Trwd.batchModifyCl()" id="qxtcl">
                                        &emsp;全线调掺量&emsp;
                                    </span>
                                    <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToModifyCl()" id="xdtcl">
                                        &emsp;&emsp;选单调掺量&emsp;&emsp;
                                    </span>
                                    </div>
                                </div>
                                @}
                                @if(shiro.hasPermission("/trwd/batch_modify_sl")) {
                                <div style="width: 230px; display: inline-block; height: 23px;margin-left: 24px">
                                    <div class="input-group">
                                    <span class="input-group-addon">砂&emsp;&emsp;率</span>
                                    <input type="number" id="sl" class="form-control" max="10" step="1" style="width: 80px; color: red;" value="1"/>
                                    <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToModifySl()" id="xdtsl">
                                        选单调砂率
                                    </span>
                                    </div>
                                </div>
                                @}
                            </div>
                            <div class="row">
                                @if(shiro.hasPermission("/trwd/choose_to_modify_rz")) {
                                <div style="width: 230px; display: inline-block; height: 23px; margin-left: 15px;">
                                    <div class="input-group">
                                        <span class="input-group-addon">容重比例</span>
                                        <input type="number" id="rzbl" class="form-control" max="1.05" min="0.99" step="0.01" style="width: 80px; color: red;" value="0.99"/>
                                        <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToModifyRzForaScbt()" id="xdxxtrz">
                                        选单选线调容重
                                        </span>
                                        <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToRzBackForaScbt()" id="xdxxrzht">
                                        选单选线容重回退
                                        </span>
                                        <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToModifyRzForAllScbt()" id="xdtrz">
                                        选单调容重
                                        </span>
                                        <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToRzBackForAllScbt()" id="xdrzht">
                                        选单容重回退
                                        </span>
                                    </div>
                                </div>
                                @}
                            </div>
                            <div class="row">
                                @if(shiro.hasPermission("/trwd/choose_to_modify_ss")) {
                                <div style="width: 524px; display: inline-block; height: 23px; margin-left: 15px;">
                                    <div class="input-group">
                                        <span class="input-group-addon">砂石数值</span>
                                        <input type="number" id="ss" class="form-control" step="5" style="width: 80px; color: red;" value="5"/>
                                        <span class="input-group-addon">砂品种</span>
                                        <select id="sandClass" class ="form-control" style="width: 100px"></select>
                                        <span class="input-group-addon">碎石品种</span>
                                        <select id="stoneClass" class ="form-control" style="width: 100px"></select>
                                        <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToModifySand()" id="xdtsa">
                                        选单调砂
                                        </span>
                                        <span class="input-group-addon btn btn-primary" onclick="Trwd.chooseToModifyStone()" id="xdtst">
                                        选单调石
                                        </span>
                                    </div>
                                </div>
                                @}
                            </div>
                        </div>
                        <#table id="TrwdTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/js/common/utils.js"></script>
<script src="${ctxPath}/static/modular/business/trwd/trwd.js"></script>
<script>
    laydate.render({
        elem: '#beginTime'
    });
    laydate.render({
        elem: '#endTime'
    });
</script>
@}
